package org.jaronsource.framework.plugins.easyui;


public class EasyUIMessage {

	private boolean success;
	
	private String message;

	public static EasyUIMessage success(String message) {
		EasyUIMessage result = new EasyUIMessage();
		result.setSuccess( true );
		result.setMessage( message );
		return result;
	}
	
	public static EasyUIMessage fail(String message) {
		EasyUIMessage result = new EasyUIMessage();
		result.setSuccess( false );
		result.setMessage( message );
		return result;
	}
	
	public boolean isSuccess() {
		return success;
	}

	
	public void setSuccess( boolean success ) {
		this.success = success;
	}

	
	public String getMessage() {
		return message;
	}

	
	public void setMessage( String message ) {
		this.message = message;
	}
	
}
